
import Vue from 'vue'
import App from './App'
import router from './router'
import { Header, Swipe, SwipeItem, Button } from 'mint-ui'
import vueResouce from 'vue-resource'
import moment from 'moment'
import 'mint-ui/lib/style.css'
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Button.name, Button);
Vue.use(vueResouce);

// 定义一个时间格式化的过滤器
Vue.filter('dateformat', function(dataStr, pattern='YYYY-MM-DD HH:mm:ss'){
  return moment(dataStr).format(pattern);
})

new Vue({
  el: '#app',
  router,
  render: (h) => h(App)
})